package com.example.miaoshademo;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author Shenluw
 * created：2019/7/17 21:33
 */
@Entity
public class MiaoshaOrder {

	@Id
	private String  orderId;
	private Integer goodsId;
	private Integer miaoshaId;
	private Integer uid;

	public String getOrderId() {
		return orderId;
	}

	public MiaoshaOrder setOrderId(String orderId) {
		this.orderId = orderId;
		return this;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public MiaoshaOrder setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
		return this;
	}

	public Integer getMiaoshaId() {
		return miaoshaId;
	}

	public MiaoshaOrder setMiaoshaId(Integer miaoshaId) {
		this.miaoshaId = miaoshaId;
		return this;
	}

	public Integer getUid() {
		return uid;
	}

	public MiaoshaOrder setUid(Integer uid) {
		this.uid = uid;
		return this;
	}

	@Override
	public String toString() {
		return "MiaoshaOrder{" +
				"orderId='" + orderId + '\'' +
				", goodsId=" + goodsId +
				", miaoshaId=" + miaoshaId +
				", uid=" + uid +
				'}';
	}
}
